﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="add-post.aspx.cs" Inherits="Admin_Forum_add_post"  %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script src="../../Javascripts/Common/DatePicker.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
<div>
        <div>
            <asp:ValidationSummary ID="valSummaryAddPost" runat="server" 
                DisplayMode="List" ShowMessageBox="true"  ShowSummary="false" 
                EnableClientScript="true" HeaderText="Following fields are required" />
        </div>
        <div>
            <table cellpadding="0" cellspacing="4" border="0" width="80%">
            <tr>
                <td colspan="4" class="heading-text">
                    Add Post
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="left" valign="top">
                    <asp:Button ID="imbSave" runat="server" Text="Save" CssClass="button" OnClick="imbSave_Click" />
                   
                </td>
            </tr>
             <tr>
                <td align="left" valign="top">
                    <b>CategoryID</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:DropDownList ID="ddlCategory" runat="server" Width="155px">
                    </asp:DropDownList>
                </td>
            </tr>
              <tr>
                <td align="left" valign="top">
                    <b>User ID</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtUser" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>Title</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtTitle" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
           
            <tr>
                <td align="left" valign="top">
                    <b>Content</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <div>
                        <FCKeditorV2:FCKeditor ID="fckContent" runat="server" Width="600px" Height="500px"
                            Debug="false">
                        </FCKeditorV2:FCKeditor>
                        &nbsp;</div>
                    
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>Date</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtDate" runat="server" Width="150px" onkeypress="return false;"
                        BackColor="#E0E0E0"></asp:TextBox>
                    <a href="#" onclick="displayDatePicker('<%= txtDate.ClientID.Replace("_", "$")%>'); return false;">
                        <img alt="" style="border: 0px none;" src='<%= Page.ResolveUrl("~/App_Themes/AdminDefault/image/Calendar.png") %>'
                            id="imgFromDate"  />
                    </a><a href="" onclick="javascript:document.getElementById('<%=txtDate.ClientID  %>').value='';return false; ">
                        Clear</a>
                    
                </td>
            </tr>
           <tr>
                <td align="left" valign="top">
                    <b>Post Tag</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtPostTag" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>IsReply</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:CheckBox ID="chkReply" runat="server" />
                </td>
            </tr>
             <tr>
                <td align="left" valign="top">
                    <b>ReplyTo ID</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtReplyToID" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>DisplayOrder</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtDisplayOrder" runat="server" Width="150px" Text="0"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>IsActive</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:CheckBox ID="chkActive" runat="server" />
                </td>
            </tr>
        </table>
        </div>
    </div>

</asp:Content>

